function dateCheck() {
	var tmonth = jQuery('#month').val();
	var tyear = jQuery('#year').val();
	max = 31;
	jQuery('#date').empty();
	if (tmonth == 4 || tmonth == 6 || tmonth == 9 || tmonth == 11) {
		max = 30;
	}
	if (tmonth == 2) {
		if (tyear % 4 == 0 && tyear % 100 != 0 || tyear % 400 == 0) {
			max = 29;
		} else {
			max = 28;
		}
	}
	for (i = 1; i <= max; i++) {
		jQuery('#date').append('<option value="' + i + '">' + i + '</option>');
	}
}
